"""
    中值滤波
        cv.medianBlur(src, ksize)
            参数：src:输入图像，ksize：卷积核的大小
"""
import numpy as np
import cv2 as cv
import matplotlib.pyplot as plt

# 1. 读取图像
dogsp = cv.imread("image/dogsp.jpeg")

# 2. 中值滤波
blur = cv.medianBlur(dogsp, 5)

# 3. 图像展示
plt.imshow(dogsp[:, :, ::-1])
plt.show()
plt.imshow(blur[:, :, ::-1])
plt.show()



